import * as vscode from 'vscode';

export function getPythonPath(): string {
    // 优先使用Python扩展设置的解释器路径
    const pythonConfig = vscode.workspace.getConfiguration('python');
    const pythonPath = pythonConfig.get<string>('defaultInterpreterPath', 'python3');
    return pythonPath;
}

export function getManimCommand(pythonPath: string, filePath: string, sceneName: string, quality: string): string {
    return `${pythonPath} -m manim ${filePath} ${sceneName} -q${quality} -o ${sceneName}`;
}